import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '营业时间',
            dataIndex: 'roomTime',
            width: 200,
        },
        {
            title: '营业起时间',
            dataIndex: 'startTime',
            width: 200,
        },
        {
            title: '营业止时间',
            dataIndex: 'endTime',
            width: 200,
        },
        {
            title: '是否需要预约（1不需要，2需要）',
            dataIndex: 'isAppoint',
            width: 200,
        },
        {
            title: '贵宾厅类型（1机场贵宾厅，2高铁贵宾厅）',
            dataIndex: 'viproomType',
            width: 200,
        },
        {
            title: '贵宾厅分类',
            dataIndex: 'viproomCategory',
            width: 200,
        },
        {
            title: '贵宾厅简介',
            dataIndex: 'roomDesc',
            width: 200,
        },
        {
            title: '贵宾厅地址',
            dataIndex: 'roomAddress',
            width: 200,
        },
        {
            title: '贵宾厅电话',
            dataIndex: 'roomPhone',
            width: 200,
        },
        {
            title: '机场Id',
            dataIndex: 'airportId',
            width: 200,
        },
        {
            title: '高铁Id',
            dataIndex: 'highSpeedTrainId',
            width: 200,
        },
        {
            title: '排序',
            dataIndex: 'viproomSort',
            width: 200,
        },
        {
            title: '预约控制',
            dataIndex: 'maxTime',
            width: 200,
        },
        {
            title: '是否含有贵宾通道',
            dataIndex: 'iscontain',
            width: 200,
        },
        {
            title: '儿童规定',
            dataIndex: 'childrensRule',
            width: 200,
        },
        {
            title: '贵宾通道名称',
            dataIndex: 'viponlyName',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'isTakePeople',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'securityType',
            width: 200,
        },
        {
            title: '（1国内出发/2国际出发）',
            dataIndex: 'departType',
            width: 200,
        },
        {
            title: '使用时长',
            dataIndex: 'canUseHours',
            width: 200,
        },
        {
            title: '航站楼信息',
            dataIndex: 'terminalInfo',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'appointmentStartTime',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'appointmentEndTime',
            width: 200,
        },
        {
            title: '推荐购卡的卡种',
            dataIndex: 'recommendVipcardId',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '营业时间',
            field: 'roomTime',
            component: 'Input',
            required: true,
        },
        {
            label: '营业起时间',
            field: 'startTime',
            component: 'Input',
            required: true,
        },
        {
            label: '营业止时间',
            field: 'endTime',
            component: 'Input',
            required: true,
        },
        {
            label: '是否需要预约（1不需要，2需要）',
            field: 'isAppoint',
            component: 'Input',
            required: true,
        },
        {
            label: '贵宾厅类型（1机场贵宾厅，2高铁贵宾厅）',
            field: 'viproomType',
            component: 'Input',
            required: true,
        },
        {
            label: '贵宾厅分类',
            field: 'viproomCategory',
            component: 'Input',
            required: true,
        },
        {
            label: '贵宾厅简介',
            field: 'roomDesc',
            component: 'Input',
            required: true,
        },
        {
            label: '贵宾厅地址',
            field: 'roomAddress',
            component: 'Input',
            required: true,
        },
        {
            label: '贵宾厅电话',
            field: 'roomPhone',
            component: 'Input',
            required: true,
        },
        {
            label: '机场Id',
            field: 'airportId',
            component: 'Input',
            required: true,
        },
        {
            label: '高铁Id',
            field: 'highSpeedTrainId',
            component: 'Input',
            required: true,
        },
        {
            label: '排序',
            field: 'viproomSort',
            component: 'Input',
            required: true,
        },
        {
            label: '预约控制',
            field: 'maxTime',
            component: 'Input',
            required: true,
        },
        {
            label: '是否含有贵宾通道',
            field: 'iscontain',
            component: 'Input',
            required: true,
        },
        {
            label: '儿童规定',
            field: 'childrensRule',
            component: 'Input',
            required: true,
        },
        {
            label: '贵宾通道名称',
            field: 'viponlyName',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'isTakePeople',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'securityType',
            component: 'Input',
            required: true,
        },
        {
            label: '（1国内出发/2国际出发）',
            field: 'departType',
            component: 'Input',
            required: true,
        },
        {
            label: '使用时长',
            field: 'canUseHours',
            component: 'Input',
            required: true,
        },
        {
            label: '航站楼信息',
            field: 'terminalInfo',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'appointmentStartTime',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'appointmentEndTime',
            component: 'Input',
            required: true,
        },
        {
            label: '推荐购卡的卡种',
            field: 'recommendVipcardId',
            component: 'Input',
            required: true,
        },
];
